package com.baidu.sggc.audit.extend;

import java.util.Map;

public class AuditExtendContext {
    private static final ThreadLocal<Map<String, Object>> EXTEND_DATA = new ThreadLocal<>();

    public static void setExtendData(Map<String, Object> data) {
        EXTEND_DATA.set(data);
    }

    public static Map<String, Object> getExtendData() {
        return EXTEND_DATA.get();
    }

    public static void clear() {
        EXTEND_DATA.remove();
    }
}
